<!DOCTYPE html>
<html>
<head>
<include file="Include:meta" />
<title>会议纪要-目的地运营集团数据管理平台</title>
<include file="Include:style" />
</head>
<body>
<include file="Include:header" />
<include file="Include:left" />
<div id="main">
	<div class="crumbs">
		<div class="crumbs-text">会议纪要</div>
		<div class="right">
			<if condition="is_permission('HY',NULL,1)">
			<a href="__APP__/Index/meeting_minutes_module" class="btn left ml5" target="_blank">会议模板管理</a>
			<a href="__APP__/Index/meeting_minutes_add" class="btn left ml5">添加会议纪要</a>
			</if>
		</div>
	</div>
	<div id="content">
		<div class="filter">
			<div class="filter-item">
				<div class="filter-title">所属中心：</div>
				<ul class="filter-order">
					<li <if condition="$center_id eq -10">class="current"</if>>
						<a href="__APP__/Index/meeting_minutes/center_id/-10">全部</a>
					</li>
					<foreach name="center_type" item="vo">
					<li <if condition="$center_id eq $vo['id']">class="current"</if>>
						<a href="__APP__/Index/meeting_minutes/center_id/{$vo['id']}">{$vo['first_name']}</a>
					</li>
					</foreach>
				</ul>
			</div>
		</div>
		<div class="table-scrollx">
			<table class="table table-bordered table-hover">
				<tr class="table-header fixed-table-header">
					<td width="">会议编号</td>
					<td width="">会议日期</td>
					<td width="">会议模板</td>
					<td width="">会议地点</td>
					<if condition="is_permission('HY',NULL,1)">
						<td width="50">管理</td>
					</if>
				</tr>
				<if condition="$result eq NULL">
				<tr>
					<td <if condition="is_permission('HY',NULL,1)">colspan="5"<else />colspan="4"</if> class="text-center">暂无相关内容</td>
				</tr>
				</if>
				<foreach name="result" item="vo">
				<tr>
					<td><a href="__APP__/Index/meeting_minutes_detail/id/{$vo['id']}">{$vo['meeting_num']}</a></td>
					<td>{$vo['date']}({$vo['year']}年 第{$vo['week']}周)</td>
					<td>{$vo['module']['module_name']}</td>
					<td>{$vo['meeting_address']}</td>
					<if condition="is_permission('HY',NULL,1)">
					<td class="nowrap">
						<if condition="$vo['status'] eq -1">
							<if condition="((get_permission('HY',NULL,3)) and ($vo['add_uid'] eq $login_id)) or (get_permission('HY',NULL,2) and strstr($vo['center_id'],$login_center_id)) or (get_permission('HY',NULL,1))">
							<a href="javascript:;" mid="{$vo['id']}" action="audit" data-toggle="tooltip" data-placement="left" title="提交" class="audit mr5"><i class="glyphicon glyphicon-ok"></i></a>
							<a href="__APP__/Index/meeting_minutes_edit/id/{$vo['id']}/center_id/{$center_id}" data-toggle="tooltip" data-placement="left" title="编辑" class="mr5"><i class="glyphicon glyphicon-edit"></i></a>
							<if condition="$vo['del'] eq 1">
								<a href="javascript:;" mid="{$vo['id']}" action="delete" data-toggle="tooltip" data-placement="left" title="删除" class="delete"><i class="glyphicon glyphicon-trash"></i></a>
							</if>
							</if>
						<else/>
							<if condition="((get_permission('HY',NULL,3)) and ($vo['add_uid'] eq $login_id)) or (get_permission('HY',NULL,2) and strstr($vo['center_id'],$login_center_id)) or (get_permission('HY',NULL,1))">
							<a href="javascript:;" mid="{$vo['id']}" action="remove" data-toggle="tooltip" data-placement="left" title="放弃提交" class="remove"><i class="glyphicon glyphicon-remove"></i></a>
							</if>
						</if>
					</td>
					</if>
				</tr>
				</foreach>
			</table>
		</div>
		<div class="pages">{$page}</div>
	</div>
</div>
<include file="Include:javascript" />
<script type="text/javascript">
$(function(){
	//删除
	$(".delete").ajaxModal({"title_text":"确认提示框","body_text":"您确定要删除吗？","url":"__APP__/Index/meeting_minutes_ajax","data":{"mid":"mid","action":"action"}});
	//提交
	$(".audit").ajaxModal({"title_text":"确认提示框","body_text":"您确定要提交吗？","url":"__APP__/Index/meeting_minutes_ajax","data":{"mid":"mid","action":"action"}});
	//放弃提交
	$(".remove").ajaxModal({"title_text":"确认提示框","body_text":"您确定要放弃提交吗？","url":"__APP__/Index/meeting_minutes_ajax","data":{"mid":"mid","action":"action"}});
});
</script>
</body>
</html>